package routers

import (
	"github.com/gin-gonic/gin"
	"shop-admin/controller"
)

func privateTransport(router *gin.RouterGroup) {
	api := &controller.TransportController{}
	transport := router.Group("/shop/transport")
	{
		transport.GET("/list", api.List) //获取运费模板列表
		transport.GET("/page", api.Page) //分页获取
		transport.GET("/info/:transportId", api.Info)
		transport.POST("", api.Save)
		transport.PUT("", api.Update)
		transport.DELETE("/:transportId", api.Delete)
	}
}
